package collections.lecture19;

import java.util.Comparator;

public class NameComparator implements Comparator<User>  {

    @Override
    public int compare(User user0, User user1) {
        return user0.getName().compareTo(user1.getName());
    }
}
